﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace BunnyEater.Domain.Base
{
    /// <summary>
    /// 基础实体类，包含审计字段和软删除功能
    /// </summary>
    public class BaseEntity : KeyEntity
    {
        /// <summary>
        /// 创建人Id
        /// </summary>
        public string? CreatorId { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime CreateTime { get; set; } = DateTime.Now;

        /// <summary>
        /// 修改人Id
        /// </summary>
        public string? ModifierId { get; set; }

        /// <summary>
        /// 修改时间
        /// </summary>
        public DateTime ModifyTime { get; set; }


        /// <summary>
        /// 是否删除（软删除标记）
        /// </summary>
        public bool IsDelete { get; set; }

    }
}
